import service from '@/utils/request'
export const getPermissionList = () => {
  return service.get('/sys/permission')
}

export const putPermission = (data) => {
  return service.put(`/sys/permission/${data.id}`, data)
}

export const deletePermission = (id) => {
  return service.delete(`/sys/permission/${id}`)
}

export const addPermission = (data) => {
  return service.post('/sys/permission', data)
}

export const getPermission = (id) => {
  return service.get(`/sys/permission/${id}`)
}
